<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.17"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Win32k: kdexts.c 源文件</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Win32k
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.17 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('a00575_source.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">kdexts.c</div>  </div>
</div><!--header-->
<div class="contents">
<a href="a00575.html">浏览该文件的文档.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">/*++</span></div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment"></span> </div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment">Copyright (c) 1993  Microsoft Corporation</span></div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment"></span> </div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment">Module Name:</span></div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment"></span> </div>
<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment">    kdexts.c</span></div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment"></span> </div>
<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment">Abstract:</span></div>
<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment"></span> </div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment">    This file contains the generic routines and initialization code</span></div>
<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment">    for the kernel debugger extensions dll.</span></div>
<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="comment"></span> </div>
<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="comment">Author:</span></div>
<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="comment"></span> </div>
<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="comment">    Wesley Witt (wesw) 26-Aug-1993</span></div>
<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="comment"></span> </div>
<div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="comment">Environment:</span></div>
<div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="comment"></span> </div>
<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="comment">    User Mode</span></div>
<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="comment"></span> </div>
<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="comment">--*/</span></div>
<div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160; </div>
<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="a03626.html">precomp.h</a>&quot;</span></div>
<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;<span class="preprocessor">#pragma hdrstop</span></div>
<div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160; </div>
<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;<span class="preprocessor">#include &lt;imagehlp.h&gt;</span></div>
<div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;<span class="preprocessor">#include &lt;ntdbg.h&gt;</span></div>
<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;<span class="preprocessor">#include &lt;ntsdexts.h&gt;</span></div>
<div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;<span class="comment">//#define NOEXTAPI</span></div>
<div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;<span class="preprocessor">#include &lt;wdbgexts.h&gt;</span></div>
<div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;<span class="preprocessor">#include &lt;ntverp.h&gt;</span></div>
<div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;<span class="comment">//#include &lt;stdexts.h&gt;</span></div>
<div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160; </div>
<div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;<span class="comment">//</span></div>
<div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;<span class="comment">// globals</span></div>
<div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;<span class="comment">//</span></div>
<div class="line"><a name="l00038"></a><span class="lineno"><a class="line" href="a00575.html#a9ade194ce3089c145550209bf8722ecb">   38</a></span>&#160;EXT_API_VERSION        <a class="code" href="a00575.html#a9ade194ce3089c145550209bf8722ecb">ApiVersion</a> = { 3, 5, EXT_API_VERSION_NUMBER, 0 };</div>
<div class="line"><a name="l00039"></a><span class="lineno"><a class="line" href="a00575.html#a7c9a66b10eeed4130f14b8857ad2a6c8">   39</a></span>&#160;WINDBG_EXTENSION_APIS  <a class="code" href="a00575.html#a7c9a66b10eeed4130f14b8857ad2a6c8">ExtensionApis</a>;</div>
<div class="line"><a name="l00040"></a><span class="lineno"><a class="line" href="a00575.html#a0b4aa72c65610c0c7bdefe8619bfc98f">   40</a></span>&#160;ULONG                  <a class="code" href="a00575.html#a0b4aa72c65610c0c7bdefe8619bfc98f">STeip</a>;</div>
<div class="line"><a name="l00041"></a><span class="lineno"><a class="line" href="a00575.html#ad93dffba6a34f2693b3dce4e9601f643">   41</a></span>&#160;ULONG                  <a class="code" href="a00575.html#ad93dffba6a34f2693b3dce4e9601f643">STebp</a>;</div>
<div class="line"><a name="l00042"></a><span class="lineno"><a class="line" href="a00575.html#a53a755fb70fca3141f48c6523c3adde5">   42</a></span>&#160;ULONG                  <a class="code" href="a00575.html#a53a755fb70fca3141f48c6523c3adde5">STesp</a>;</div>
<div class="line"><a name="l00043"></a><span class="lineno"><a class="line" href="a00575.html#ac2e6ccb7720b10e9beb7f3c8a346be2a">   43</a></span>&#160;USHORT                 <a class="code" href="a00575.html#ac2e6ccb7720b10e9beb7f3c8a346be2a">SavedMajorVersion</a>;</div>
<div class="line"><a name="l00044"></a><span class="lineno"><a class="line" href="a00575.html#a18647636fc3ec2b75d5e40c677ec4cd1">   44</a></span>&#160;USHORT                 <a class="code" href="a00575.html#a18647636fc3ec2b75d5e40c677ec4cd1">SavedMinorVersion</a>;</div>
<div class="line"><a name="l00045"></a><span class="lineno"><a class="line" href="a00575.html#a8226097a16f9a856a8093a9b1234e18d">   45</a></span>&#160;USHORT                 <a class="code" href="a00575.html#a8226097a16f9a856a8093a9b1234e18d">usProcessorArchitecture</a>;</div>
<div class="line"><a name="l00046"></a><span class="lineno"><a class="line" href="a00575.html#a918342acdc1fd8f8e5d3754801574421">   46</a></span>&#160;BOOL                   <a class="code" href="a00575.html#a918342acdc1fd8f8e5d3754801574421">bDebuggingChecked</a>;</div>
<div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160; </div>
<div class="line"><a name="l00048"></a><span class="lineno"><a class="line" href="a00575.html#a9eb792e2bd679e9937fbf28d8cbcc9f7">   48</a></span>&#160;PSZ <a class="code" href="a00575.html#a9eb792e2bd679e9937fbf28d8cbcc9f7">szProcessorArchitecture</a>[] = {</div>
<div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;    <span class="stringliteral">&quot;Intel&quot;</span>,</div>
<div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;    <span class="stringliteral">&quot;MIPS&quot;</span>,</div>
<div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;    <span class="stringliteral">&quot;Alpha&quot;</span>,</div>
<div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;    <span class="stringliteral">&quot;PPC&quot;</span></div>
<div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;};</div>
<div class="line"><a name="l00054"></a><span class="lineno"><a class="line" href="a00575.html#a21f950acd96f17e870bd95cfc19038d8">   54</a></span>&#160;<span class="preprocessor">#define cArchitecture (sizeof(szProcessorArchitecture) / sizeof(PSZ))</span></div>
<div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160; </div>
<div class="line"><a name="l00056"></a><span class="lineno"><a class="line" href="a00575.html#ab994ec79181f2cdb473e622750ead9d2">   56</a></span>&#160;<a class="code" href="a03626.html#a3b8dfedf856dc45451dd46f4de465cae">PGETEPROCESSDATAFUNC</a> <a class="code" href="a00575.html#ab994ec79181f2cdb473e622750ead9d2">aGetEProcessDataFunc</a>[] = {</div>
<div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;    <a class="code" href="a03626.html#af4befe58a701f27a7d93b893ae5ba1b0">GetEProcessData_X86</a>,</div>
<div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;    <a class="code" href="a03626.html#af3b128dab417a35a1bcb516e436d8c71">GetEProcessData_MIPS</a>,</div>
<div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;    <a class="code" href="a03626.html#a26fcfaffeaa5a5a72a0179b57ac46819">GetEProcessData_ALPHA</a>,</div>
<div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;    <a class="code" href="a03626.html#afdbe8a0c19055d361fad13744a7b6f95">GetEProcessData_PPC</a></div>
<div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;};</div>
<div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160; </div>
<div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;<span class="keyword">extern</span> <a class="code" href="a03626.html#a3b8dfedf856dc45451dd46f4de465cae">PGETEPROCESSDATAFUNC</a> <a class="code" href="a00575.html#aa58a449b75e2fcdcf1013c771867883e">GetEProcessData</a>;</div>
<div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160; </div>
<div class="line"><a name="l00065"></a><span class="lineno"><a class="line" href="a00575.html#aef9b79fac43055d112d708c5b279ad7d">   65</a></span>&#160;<a class="code" href="a00575.html#aef9b79fac43055d112d708c5b279ad7d">DllInit</a>(</div>
<div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;    HANDLE hModule,</div>
<div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;    <a class="code" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a>  dwReason,</div>
<div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;    <a class="code" href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a>  dwReserved</div>
<div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;    )</div>
<div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;{</div>
<div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;    <span class="keywordflow">switch</span> (dwReason) {</div>
<div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;        <span class="keywordflow">case</span> DLL_THREAD_ATTACH:</div>
<div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;            <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160; </div>
<div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;        <span class="keywordflow">case</span> DLL_THREAD_DETACH:</div>
<div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;            <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160; </div>
<div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;        <span class="keywordflow">case</span> DLL_PROCESS_DETACH:</div>
<div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;            <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160; </div>
<div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;        <span class="keywordflow">case</span> DLL_PROCESS_ATTACH:</div>
<div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;            <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;    }</div>
<div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160; </div>
<div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;    <span class="keywordflow">return</span> TRUE;</div>
<div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;}</div>
<div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160; </div>
<div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160; </div>
<div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;VOID</div>
<div class="line"><a name="l00090"></a><span class="lineno"><a class="line" href="a00575.html#a1b0bb1f200646cc480d6c1143eec802c">   90</a></span>&#160;<a class="code" href="a00575.html#a1b0bb1f200646cc480d6c1143eec802c">WinDbgExtensionDllInit</a>(</div>
<div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;    PWINDBG_EXTENSION_APIS lpExtensionApis,</div>
<div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;    USHORT MajorVersion,</div>
<div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;    USHORT MinorVersion</div>
<div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;    )</div>
<div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;{</div>
<div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;    ULONG offKeProcessorArchitecture;</div>
<div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;    ULONG Result;</div>
<div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160; </div>
<div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;    <a class="code" href="a00575.html#a7c9a66b10eeed4130f14b8857ad2a6c8">ExtensionApis</a> = *lpExtensionApis;</div>
<div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160; </div>
<div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;    <a class="code" href="a00575.html#ac2e6ccb7720b10e9beb7f3c8a346be2a">SavedMajorVersion</a> = MajorVersion;</div>
<div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;    <a class="code" href="a00575.html#a18647636fc3ec2b75d5e40c677ec4cd1">SavedMinorVersion</a> = MinorVersion;</div>
<div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160; </div>
<div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;    <a class="code" href="a00575.html#a918342acdc1fd8f8e5d3754801574421">bDebuggingChecked</a> = (<a class="code" href="a00575.html#ac2e6ccb7720b10e9beb7f3c8a346be2a">SavedMajorVersion</a> == 0x0c);</div>
<div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;    <a class="code" href="a00575.html#a8226097a16f9a856a8093a9b1234e18d">usProcessorArchitecture</a> = (USHORT)-1;</div>
<div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;    offKeProcessorArchitecture = GetExpression(<span class="stringliteral">&quot;KeProcessorArchitecture&quot;</span>);</div>
<div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;    <span class="keywordflow">if</span> (offKeProcessorArchitecture != 0)</div>
<div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;        ReadMemory(offKeProcessorArchitecture, &amp;<a class="code" href="a00575.html#a8226097a16f9a856a8093a9b1234e18d">usProcessorArchitecture</a>,</div>
<div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;                <span class="keyword">sizeof</span>(USHORT), &amp;Result);</div>
<div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160;    <span class="keywordflow">if</span> (<a class="code" href="a00575.html#a8226097a16f9a856a8093a9b1234e18d">usProcessorArchitecture</a> &gt;= <a class="code" href="a00575.html#a21f950acd96f17e870bd95cfc19038d8">cArchitecture</a>) {</div>
<div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;        <a class="code" href="a00575.html#aa58a449b75e2fcdcf1013c771867883e">GetEProcessData</a> = <a class="code" href="a03626.html#af4befe58a701f27a7d93b893ae5ba1b0">GetEProcessData_X86</a>;</div>
<div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;    } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;        <a class="code" href="a00575.html#aa58a449b75e2fcdcf1013c771867883e">GetEProcessData</a> = <a class="code" href="a00575.html#ab994ec79181f2cdb473e622750ead9d2">aGetEProcessDataFunc</a>[<a class="code" href="a00575.html#a8226097a16f9a856a8093a9b1234e18d">usProcessorArchitecture</a>];</div>
<div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;    }</div>
<div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;    <span class="keywordflow">return</span>;</div>
<div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;}</div>
<div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160; </div>
<div class="line"><a name="l00118"></a><span class="lineno"><a class="line" href="a00575.html#af2f12e073a04b01578ac3d66eaf94562">  118</a></span>&#160;<a class="code" href="a00575.html#af2f12e073a04b01578ac3d66eaf94562">DECLARE_API</a>( version )</div>
<div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;{</div>
<div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;<span class="preprocessor">#if DBG</span></div>
<div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160;    PCHAR DebuggerType = <span class="stringliteral">&quot;Checked&quot;</span>;</div>
<div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160;<span class="preprocessor">#else</span></div>
<div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;    PCHAR DebuggerType = <span class="stringliteral">&quot;Free&quot;</span>;</div>
<div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00125"></a><span class="lineno">  125</span>&#160; </div>
<div class="line"><a name="l00126"></a><span class="lineno">  126</span>&#160;    dprintf( <span class="stringliteral">&quot;%s Extension dll for Build %d debugging %s kernel for Build %d\n&quot;</span>,</div>
<div class="line"><a name="l00127"></a><span class="lineno">  127</span>&#160;             DebuggerType,</div>
<div class="line"><a name="l00128"></a><span class="lineno">  128</span>&#160;             VER_PRODUCTBUILD,</div>
<div class="line"><a name="l00129"></a><span class="lineno">  129</span>&#160;             <a class="code" href="a00575.html#ac2e6ccb7720b10e9beb7f3c8a346be2a">SavedMajorVersion</a> == 0x0c ? <span class="stringliteral">&quot;Checked&quot;</span> : <span class="stringliteral">&quot;Free&quot;</span>,</div>
<div class="line"><a name="l00130"></a><span class="lineno">  130</span>&#160;             <a class="code" href="a00575.html#a18647636fc3ec2b75d5e40c677ec4cd1">SavedMinorVersion</a></div>
<div class="line"><a name="l00131"></a><span class="lineno">  131</span>&#160;           );</div>
<div class="line"><a name="l00132"></a><span class="lineno">  132</span>&#160;}</div>
<div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160; </div>
<div class="line"><a name="l00134"></a><span class="lineno">  134</span>&#160;VOID</div>
<div class="line"><a name="l00135"></a><span class="lineno"><a class="line" href="a00575.html#adad35009bfb34b8479c002c2e3dfef66">  135</a></span>&#160;<a class="code" href="a00575.html#adad35009bfb34b8479c002c2e3dfef66">CheckVersion</a>(</div>
<div class="line"><a name="l00136"></a><span class="lineno">  136</span>&#160;    VOID</div>
<div class="line"><a name="l00137"></a><span class="lineno">  137</span>&#160;    )</div>
<div class="line"><a name="l00138"></a><span class="lineno">  138</span>&#160;{</div>
<div class="line"><a name="l00139"></a><span class="lineno">  139</span>&#160;<span class="preprocessor">#if DBG</span></div>
<div class="line"><a name="l00140"></a><span class="lineno">  140</span>&#160;    <span class="keywordflow">if</span> ((<a class="code" href="a00575.html#ac2e6ccb7720b10e9beb7f3c8a346be2a">SavedMajorVersion</a> != 0x0c) || (<a class="code" href="a00575.html#a18647636fc3ec2b75d5e40c677ec4cd1">SavedMinorVersion</a> != VER_PRODUCTBUILD)) {</div>
<div class="line"><a name="l00141"></a><span class="lineno">  141</span>&#160;        dprintf(<span class="stringliteral">&quot;\r\n*** Extension DLL(%d Checked) does not match target system(%d %s)\r\n\r\n&quot;</span>,</div>
<div class="line"><a name="l00142"></a><span class="lineno">  142</span>&#160;                VER_PRODUCTBUILD, <a class="code" href="a00575.html#a18647636fc3ec2b75d5e40c677ec4cd1">SavedMinorVersion</a>, (<a class="code" href="a00575.html#ac2e6ccb7720b10e9beb7f3c8a346be2a">SavedMajorVersion</a>==0x0f) ? <span class="stringliteral">&quot;Free&quot;</span> : <span class="stringliteral">&quot;Checked&quot;</span> );</div>
<div class="line"><a name="l00143"></a><span class="lineno">  143</span>&#160;    }</div>
<div class="line"><a name="l00144"></a><span class="lineno">  144</span>&#160;<span class="preprocessor">#else</span></div>
<div class="line"><a name="l00145"></a><span class="lineno">  145</span>&#160;    <span class="keywordflow">if</span> ((<a class="code" href="a00575.html#ac2e6ccb7720b10e9beb7f3c8a346be2a">SavedMajorVersion</a> != 0x0f) || (<a class="code" href="a00575.html#a18647636fc3ec2b75d5e40c677ec4cd1">SavedMinorVersion</a> != VER_PRODUCTBUILD)) {</div>
<div class="line"><a name="l00146"></a><span class="lineno">  146</span>&#160;        dprintf(<span class="stringliteral">&quot;\r\n*** Extension DLL(%d Free) does not match target system(%d %s)\r\n\r\n&quot;</span>,</div>
<div class="line"><a name="l00147"></a><span class="lineno">  147</span>&#160;                VER_PRODUCTBUILD, <a class="code" href="a00575.html#a18647636fc3ec2b75d5e40c677ec4cd1">SavedMinorVersion</a>, (<a class="code" href="a00575.html#ac2e6ccb7720b10e9beb7f3c8a346be2a">SavedMajorVersion</a>==0x0f) ? <span class="stringliteral">&quot;Free&quot;</span> : <span class="stringliteral">&quot;Checked&quot;</span> );</div>
<div class="line"><a name="l00148"></a><span class="lineno">  148</span>&#160;    }</div>
<div class="line"><a name="l00149"></a><span class="lineno">  149</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00150"></a><span class="lineno">  150</span>&#160;}</div>
<div class="line"><a name="l00151"></a><span class="lineno">  151</span>&#160; </div>
<div class="line"><a name="l00152"></a><span class="lineno">  152</span>&#160;LPEXT_API_VERSION</div>
<div class="line"><a name="l00153"></a><span class="lineno"><a class="line" href="a00575.html#a5412363568467cb73c021ec6d097da7b">  153</a></span>&#160;<a class="code" href="a00575.html#a5412363568467cb73c021ec6d097da7b">ExtensionApiVersion</a>(</div>
<div class="line"><a name="l00154"></a><span class="lineno">  154</span>&#160;    VOID</div>
<div class="line"><a name="l00155"></a><span class="lineno">  155</span>&#160;    )</div>
<div class="line"><a name="l00156"></a><span class="lineno">  156</span>&#160;{</div>
<div class="line"><a name="l00157"></a><span class="lineno">  157</span>&#160;    <span class="keywordflow">return</span> &amp;<a class="code" href="a00575.html#a9ade194ce3089c145550209bf8722ecb">ApiVersion</a>;</div>
<div class="line"><a name="l00158"></a><span class="lineno">  158</span>&#160;}</div>
<div class="line"><a name="l00159"></a><span class="lineno">  159</span>&#160; </div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<div class="ttc" id="aa03626_html_afdbe8a0c19055d361fad13744a7b6f95"><div class="ttname"><a href="a03626.html#afdbe8a0c19055d361fad13744a7b6f95">GetEProcessData_PPC</a></div><div class="ttdeci">PVOID GetEProcessData_PPC(PEPROCESS pEProcess, UINT iData, PVOID pBuffer)</div></div>
<div class="ttc" id="aa00575_html_a7c9a66b10eeed4130f14b8857ad2a6c8"><div class="ttname"><a href="a00575.html#a7c9a66b10eeed4130f14b8857ad2a6c8">ExtensionApis</a></div><div class="ttdeci">WINDBG_EXTENSION_APIS ExtensionApis</div><div class="ttdef"><b>Definition:</b> <a href="a00575_source.html#l00039">kdexts.c:39</a></div></div>
<div class="ttc" id="aa03626_html_a26fcfaffeaa5a5a72a0179b57ac46819"><div class="ttname"><a href="a03626.html#a26fcfaffeaa5a5a72a0179b57ac46819">GetEProcessData_ALPHA</a></div><div class="ttdeci">PVOID GetEProcessData_ALPHA(PEPROCESS pEProcess, UINT iData, PVOID pBuffer)</div></div>
<div class="ttc" id="aa03626_html_a3b8dfedf856dc45451dd46f4de465cae"><div class="ttname"><a href="a03626.html#a3b8dfedf856dc45451dd46f4de465cae">PGETEPROCESSDATAFUNC</a></div><div class="ttdeci">PVOID(* PGETEPROCESSDATAFUNC)(PEPROCESS, UINT, PVOID)</div><div class="ttdef"><b>Definition:</b> <a href="a03626_source.html#l00047">kdexts/precomp.h:47</a></div></div>
<div class="ttc" id="aa00575_html_a9eb792e2bd679e9937fbf28d8cbcc9f7"><div class="ttname"><a href="a00575.html#a9eb792e2bd679e9937fbf28d8cbcc9f7">szProcessorArchitecture</a></div><div class="ttdeci">PSZ szProcessorArchitecture[]</div><div class="ttdef"><b>Definition:</b> <a href="a00575_source.html#l00048">kdexts.c:48</a></div></div>
<div class="ttc" id="aa00575_html_ac2e6ccb7720b10e9beb7f3c8a346be2a"><div class="ttname"><a href="a00575.html#ac2e6ccb7720b10e9beb7f3c8a346be2a">SavedMajorVersion</a></div><div class="ttdeci">USHORT SavedMajorVersion</div><div class="ttdef"><b>Definition:</b> <a href="a00575_source.html#l00043">kdexts.c:43</a></div></div>
<div class="ttc" id="aa00575_html_a1b0bb1f200646cc480d6c1143eec802c"><div class="ttname"><a href="a00575.html#a1b0bb1f200646cc480d6c1143eec802c">WinDbgExtensionDllInit</a></div><div class="ttdeci">VOID WinDbgExtensionDllInit(PWINDBG_EXTENSION_APIS lpExtensionApis, USHORT MajorVersion, USHORT MinorVersion)</div><div class="ttdef"><b>Definition:</b> <a href="a00575_source.html#l00090">kdexts.c:90</a></div></div>
<div class="ttc" id="aa00575_html_a918342acdc1fd8f8e5d3754801574421"><div class="ttname"><a href="a00575.html#a918342acdc1fd8f8e5d3754801574421">bDebuggingChecked</a></div><div class="ttdeci">BOOL bDebuggingChecked</div><div class="ttdef"><b>Definition:</b> <a href="a00575_source.html#l00046">kdexts.c:46</a></div></div>
<div class="ttc" id="aa00575_html_a5412363568467cb73c021ec6d097da7b"><div class="ttname"><a href="a00575.html#a5412363568467cb73c021ec6d097da7b">ExtensionApiVersion</a></div><div class="ttdeci">LPEXT_API_VERSION ExtensionApiVersion(VOID)</div><div class="ttdef"><b>Definition:</b> <a href="a00575_source.html#l00153">kdexts.c:153</a></div></div>
<div class="ttc" id="aa03626_html_af3b128dab417a35a1bcb516e436d8c71"><div class="ttname"><a href="a03626.html#af3b128dab417a35a1bcb516e436d8c71">GetEProcessData_MIPS</a></div><div class="ttdeci">PVOID GetEProcessData_MIPS(PEPROCESS pEProcess, UINT iData, PVOID pBuffer)</div></div>
<div class="ttc" id="aa00575_html_ad93dffba6a34f2693b3dce4e9601f643"><div class="ttname"><a href="a00575.html#ad93dffba6a34f2693b3dce4e9601f643">STebp</a></div><div class="ttdeci">ULONG STebp</div><div class="ttdef"><b>Definition:</b> <a href="a00575_source.html#l00041">kdexts.c:41</a></div></div>
<div class="ttc" id="aa00575_html_a9ade194ce3089c145550209bf8722ecb"><div class="ttname"><a href="a00575.html#a9ade194ce3089c145550209bf8722ecb">ApiVersion</a></div><div class="ttdeci">EXT_API_VERSION ApiVersion</div><div class="ttdef"><b>Definition:</b> <a href="a00575_source.html#l00038">kdexts.c:38</a></div></div>
<div class="ttc" id="aa00575_html_a0b4aa72c65610c0c7bdefe8619bfc98f"><div class="ttname"><a href="a00575.html#a0b4aa72c65610c0c7bdefe8619bfc98f">STeip</a></div><div class="ttdeci">ULONG STeip</div><div class="ttdef"><b>Definition:</b> <a href="a00575_source.html#l00040">kdexts.c:40</a></div></div>
<div class="ttc" id="aa00575_html_adad35009bfb34b8479c002c2e3dfef66"><div class="ttname"><a href="a00575.html#adad35009bfb34b8479c002c2e3dfef66">CheckVersion</a></div><div class="ttdeci">VOID CheckVersion(VOID)</div><div class="ttdef"><b>Definition:</b> <a href="a00575_source.html#l00135">kdexts.c:135</a></div></div>
<div class="ttc" id="aa00563_html_a074685e97e89d6aa2accdfcb82328699"><div class="ttname"><a href="a00563.html#a074685e97e89d6aa2accdfcb82328699">DWORD</a></div><div class="ttdeci">ddeml v[i&lt; inst &gt;][t&lt; type &gt;][hObj|pObj] Dump DDEML state information ddeml lists all ddeml instances for this process n ddeml t&lt; type &gt; lists all ddeml objects of the given type n n assumes link is first DWORD</div><div class="ttdef"><b>Definition:</b> <a href="a00563_source.html#l00175">exts.h:175</a></div></div>
<div class="ttc" id="aa00575_html_aa58a449b75e2fcdcf1013c771867883e"><div class="ttname"><a href="a00575.html#aa58a449b75e2fcdcf1013c771867883e">GetEProcessData</a></div><div class="ttdeci">PGETEPROCESSDATAFUNC GetEProcessData</div><div class="ttdef"><b>Definition:</b> <a href="a00584_source.html#l00043">userexts.c:43</a></div></div>
<div class="ttc" id="aa00575_html_a53a755fb70fca3141f48c6523c3adde5"><div class="ttname"><a href="a00575.html#a53a755fb70fca3141f48c6523c3adde5">STesp</a></div><div class="ttdeci">ULONG STesp</div><div class="ttdef"><b>Definition:</b> <a href="a00575_source.html#l00042">kdexts.c:42</a></div></div>
<div class="ttc" id="aa03626_html"><div class="ttname"><a href="a03626.html">precomp.h</a></div></div>
<div class="ttc" id="aa00575_html_aef9b79fac43055d112d708c5b279ad7d"><div class="ttname"><a href="a00575.html#aef9b79fac43055d112d708c5b279ad7d">DllInit</a></div><div class="ttdeci">DllInit(HANDLE hModule, DWORD dwReason, DWORD dwReserved)</div><div class="ttdef"><b>Definition:</b> <a href="a00575_source.html#l00065">kdexts.c:65</a></div></div>
<div class="ttc" id="aa03626_html_af4befe58a701f27a7d93b893ae5ba1b0"><div class="ttname"><a href="a03626.html#af4befe58a701f27a7d93b893ae5ba1b0">GetEProcessData_X86</a></div><div class="ttdeci">PVOID GetEProcessData_X86(PEPROCESS pEProcess, UINT iData, PVOID pBuffer)</div></div>
<div class="ttc" id="aa00575_html_a8226097a16f9a856a8093a9b1234e18d"><div class="ttname"><a href="a00575.html#a8226097a16f9a856a8093a9b1234e18d">usProcessorArchitecture</a></div><div class="ttdeci">USHORT usProcessorArchitecture</div><div class="ttdef"><b>Definition:</b> <a href="a00575_source.html#l00045">kdexts.c:45</a></div></div>
<div class="ttc" id="aa00575_html_af2f12e073a04b01578ac3d66eaf94562"><div class="ttname"><a href="a00575.html#af2f12e073a04b01578ac3d66eaf94562">DECLARE_API</a></div><div class="ttdeci">DECLARE_API(version)</div><div class="ttdef"><b>Definition:</b> <a href="a00575_source.html#l00118">kdexts.c:118</a></div></div>
<div class="ttc" id="aa00575_html_a18647636fc3ec2b75d5e40c677ec4cd1"><div class="ttname"><a href="a00575.html#a18647636fc3ec2b75d5e40c677ec4cd1">SavedMinorVersion</a></div><div class="ttdeci">USHORT SavedMinorVersion</div><div class="ttdef"><b>Definition:</b> <a href="a00575_source.html#l00044">kdexts.c:44</a></div></div>
<div class="ttc" id="aa00575_html_a21f950acd96f17e870bd95cfc19038d8"><div class="ttname"><a href="a00575.html#a21f950acd96f17e870bd95cfc19038d8">cArchitecture</a></div><div class="ttdeci">#define cArchitecture</div><div class="ttdef"><b>Definition:</b> <a href="a00575_source.html#l00054">kdexts.c:54</a></div></div>
<div class="ttc" id="aa00575_html_ab994ec79181f2cdb473e622750ead9d2"><div class="ttname"><a href="a00575.html#ab994ec79181f2cdb473e622750ead9d2">aGetEProcessDataFunc</a></div><div class="ttdeci">PGETEPROCESSDATAFUNC aGetEProcessDataFunc[]</div><div class="ttdef"><b>Definition:</b> <a href="a00575_source.html#l00056">kdexts.c:56</a></div></div>
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_885cc87fac2d91e269af0a5a959fa5f6.html">E:</a></li><li class="navelem"><a class="el" href="dir_4e091ed8704426a7a4980368ba259fde.html">git</a></li><li class="navelem"><a class="el" href="dir_cd70cb5eb491250157f2d55d3ff4b13e.html">backup</a></li><li class="navelem"><a class="el" href="dir_ba2b673b566ba104b956abdc6dec0552.html">org</a></li><li class="navelem"><a class="el" href="dir_5bb0003d7907b45051943541418399f5.html">ntuser</a></li><li class="navelem"><a class="el" href="dir_db687f29d3aed80f145dc17fb45a7b60.html">kdexts</a></li><li class="navelem"><a class="el" href="a00575.html">kdexts.c</a></li>
    <li class="footer">制作者
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.17 </li>
  </ul>
</div>
</body>
</html>
